#!/usr/bin/e    nv python
# coding: utf-8

from google.appengine.ext import webapp
from google.appengine.ext.webapp import template, util
from settings import STATIC_PATH
import os
    
class MainHandler(webapp.RequestHandler):
    def get(self):
        # for Html output
        self.response.headers['Content-Type'] = 'text/html'
        path = os.path.join(os.path.dirname(__file__), '../templetes/openapi.html')
        self.response.out.write(template.render(path, 
                                                {
                                                 "static_path" : STATIC_PATH
                                                }))
        
        

def main():
    application = webapp.WSGIApplication([('/openapi', MainHandler)],
                                         debug=True)
    util.run_wsgi_app(application)


if __name__ == '__main__':
    main()